home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / The Director Toolkit v1.0.adf / Programs / CardGame / docs < prev   
Text File  |  1987-02-25  |  1KB  |  40 lines

  1.  
  2. |c7|f2|t1CardGame Example|c3|f1|t0
  3.  
  4. The CardGame example contains several examples that can be useful when
  5. designing your own games as well as other things.  The script is heavily
  6. commented, and can be explored to learn techniques for various types of
  7. data manipulation.|r1
  8.  
  9. In the Card Game example for instance, shuffling of the |c752|c3 card deck
  10. is performed by doing a sort of |c752|c3 random numbers.  The sort routine
  11. is a generalized heapsort algorithm, and can be used for other basic
  12. sorting requirements.
  13. |e
  14.  
  15. The Card Game is modularized, allowing each section to be treated as
  16. a unit, and adjusted, removed, or inserted in other scripts as desired.|r1
  17.  
  18. Major modular sections are as follows:|r1
  19.  
  20. |c7|+61. Playing card display routine|r1
  21. |+62. Deck shuffle routine|r1
  22. |+63. Generic heapsort routine|r1
  23. |+64. Poker hand evaluation routine|c3|r1
  24. |e
  25.  
  26.  
  27.  
  28. These routines can be adjusted in various ways.  For example, the playing
  29. card display routine can be used to display any standard card anywhere on
  30. screen, so it can be used to represent any type of card game display.|r1
  31.  
  32. The CardGame script is located in the|r1
  33.  
  34. |c7|+8ToolKit:Programs/CardGame|c3|r1
  35.  
  36. directory.|r1
  37.  
  38. Thanks to Jim McInnis for the great card designs and the associated
  39. card display routine.
  40.